<?php $this->widget('bootstrap.widgets.TbBreadcrumbs', array(
    'links'=>array('Berita','Posting'),
));

?>

<br />
<h4>Posting</h4>
<hr/>
<div class="alert alert-success fade in">
<i class="icon-remove close" data-dismiss="alert"></i>
<strong>Posting!</strong>
Pastikan Berita Yang Akan Diposting Sudah Benar.
</div>
<br />

<?php $this->widget('bootstrap.widgets.TbDetailView',array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'judul',
		'deskripsi',
		array(
			'name'=>'isi',
			'value'=>$model->isi,
			'type'=>'html',
			),
		
	),
)); ?>


<div class="form-actions">
<?php
	if($model->posting==1){
	?>
	<a class="btn btn-sm btn-primary" href="<?php echo Yii::app()->createUrl('admin/posting/prosesPosting',array('id'=>$id)) ?>">Batalkan Posting</a>
	<?php
	}else{
	?>
	<a class="btn btn-sm btn-primary" href="<?php echo Yii::app()->createUrl('admin/posting/prosesPosting',array('id'=>$id)) ?>">Posting</a>
	<?php
	}
	?>
	
</div>